﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace DSS_XNA.Engine.Util
{
    public static class Util
    {
        #region Static Methods

        /// <summary>
        /// This returns the full path from the root directory to the passed local path
        /// </summary>
        /// <param name="localPath"></param>
        /// <returns></returns>
        public static string GetFullPath(string localPath)
        {
            string path = Assembly.GetExecutingAssembly().Location;
            path = Path.GetDirectoryName(path);

            return String.Format("{0}\\{1}", path, localPath);
        }

        #endregion
    }
}
